import request from '@/utils/request'

// 查询与带班学生谈心谈话列表
export function listStuTalkMaterials(query) {
  return request({
    url: '/teacher/stuTalkMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询与带班学生谈心谈话详细
export function getStuTalkMaterials(id) {
  return request({
    url: '/teacher/stuTalkMaterials/' + id,
    method: 'get'
  })
}

// 新增与带班学生谈心谈话
export function addStuTalkMaterials(data) {
  return request({
    url: '/teacher/stuTalkMaterials/add',
    method: 'post',
    data: data
  })
}

// 修改与带班学生谈心谈话
export function updateStuTalkMaterials(data) {
  return request({
    url: '/teacher/stuTalkMaterials/update',
    method: 'post',
    data: data
  })
}

// 删除与带班学生谈心谈话
export function delStuTalkMaterials(id) {
  return request({
    url: '/teacher/stuTalkMaterials/' + id,
    method: 'post'
  })
}
